package com.work.mdass.util;

import com.work.mdass.domain.Result;
import com.work.mdass.domain.User;

public class UserResultUtil {
	
	public static Result<User> success(User user){
		
		Result<User> result = new Result<User>();
		
		result.setCode(0);
		result.setMsg("成功");
		result.setData(user);
		
		return result;
	}
	
	public static Result<User> success(){
		return null;
	}
	public static Result<User> error(Integer code,String msg) {
		
		Result<User> result = new Result<User>();
		result.setCode(code);
		result.setMsg(msg);
		return result;
	}
		
}
